// 会员等级管理相关类型定义

export interface MemberLevel {
    id: string;
    levelCode: string;
    levelName: string;
    memberLevel: number;
    growthValue: number;
    consumptionAmount: number;
    sortOrder: number;
    language: string;
    consumptionAmountDesc: string;
    status: number;
    createTime: string;
    updateTime: string;
    benefits?: Benefit[];
    growthRules?: GrowthRule[];
}

export interface Benefit {
    id: string;
    benefitType: string;
    benefitName: string;
    discountRate: number;
    dailyLimit: number;
}

export interface GrowthRule {
    id: string;
    actionType: string;
    actionName: string;
    growthValue: number;
    dailyLimit: number;
}

export interface MemberLevelQueryParams {
    current?: number;
    size?: number;
    language?: string;
    levelCode?: string;
    levelName?: string;
    status?: number;
}

export interface MemberLevelPageResponse {
    records: MemberLevel[];
    total: number;
    current: number;
    size: number;
    pages: number;
}
